import instance from './request.js'

//商品列表接口
export function fetchGoodsList(page = 1, pagesize = 10) {
  return   instance.get(`/getgoods?pageindex=${page}&pagesize=${pagesize}`)
}

//获取商品轮播图 http://api.w0824.com/api/getthumbimages/87
export function fetchGoodsImage(goodsid) {
  return   instance.get(`/getthumbimages/${goodsid}`)
}

//获取商品基本信息 http://api.w0824.com/api/getgoodsinfo/87
export function fetchGoodsInfo(goodsid) {
  return   instance.get(`/getgoodsinfo/${goodsid}`)
}